package com.koron.common.core.business.langfield.mapper;

import com.koron.common.core.business.langfield.bean.LangFieldBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LangFieldBeanMapper {
    int deleteByPrimaryKey(String id);

    int insert(LangFieldBean record);

    int insertSelective(LangFieldBean record);

    LangFieldBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LangFieldBean record);

    int updateByPrimaryKey(LangFieldBean record);

    int updateBatch(List<LangFieldBean> list);

    int updateBatchSelective(List<LangFieldBean> list);

    int batchInsert(@Param("list") List<LangFieldBean> list);

    List<LangFieldBean> queryByParentId(@Param("parentId") String parentId, @Param("lang") String lang);

    List<LangFieldBean> queryByFormKey(@Param("formKey")String formKey);

    List<LangFieldBean> queryByFormKeyAndFieldKey(@Param("formKey")String formKey,@Param("fieldKey")String fieldKey, @Param("id") String id);

    List<LangFieldBean> queryAll();

    List<LangFieldBean> queryFireldByClassifyId(@Param("classifyId") String classifyId);

    List<LangFieldBean> queryByParentIdAndFieldKey(@Param("parentId") String parentId,@Param("fieldKey")String fieldKey);

}
